<h1>Listado de Clientes</h1>
<?php
    echo $this->html->link('Agregar Cliente', array('action'=>'add'));

?>
<table>
        <tr>
                <th>Nombre</th>
                <th>Cedula</th>
                <th>Telefono</th>
                <th>Celular</th>
                <th>Correo</th>
                <th>EstadoCivil</th>
                <th>TipoNegocio</th>
                <th>ProductoSolicitado</th>
                <th>Id</th>
                <th>Acciones</th>
        </tr>
<?php foreach($clientes as $cliente):?>
        <tr>
                <td> <?php echo $cliente['Client']['nombre'];?></td>
                <td> <?php echo $cliente['Client']['cedula'];?></td>
                <td> <?php echo $cliente['Client']['telefono'];?></td>
                <td> <?php echo $cliente['Client']['celular'];?></td>
                <td> <?php echo $cliente['Client']['correo'];?></td>
                <td> <?php echo $cliente['Client']['estadoCivil'];?></td>
                <td> <?php echo $cliente['Client']['tipoNegocio'];?></td>
                <td> <?php echo $cliente['Client']['productoSolicitado'];?></td>
                <td> <?php echo $cliente['Client']['id'];?></td>
                <td> <?php echo $this->Html->Link($cliente['Asesor']['nombre'],
                                    array('controller'=>'asesors',
                                'action' => 'index',
                                  $cliente['Asesor']['id']));?></td>

                   
                <td>
<?php echo $this->Html->Link( 'Editar', array('action'=>'edit',$cliente ['Client']['id']));?>                
<?php echo $this->Form->postLink('Eliminar', array('action'=>'delete', 
            $cliente['Client']['id']), array('confirm' =>'Realmente desea eliminar este Cliente'));
            ?>
            </td>
        </tr>
<?php endforeach;?>
</table>

